<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateHistoricoStockTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_id}" for="id" />
                    <h:inputText id="id" value="#{historicoStockController.selected.id}" title="#{bundle.CreateHistoricoStockTitle_id}" required="true" requiredMessage="#{bundle.CreateHistoricoStockRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_quantidade}" for="quantidade" />
                    <h:inputText id="quantidade" value="#{historicoStockController.selected.quantidade}" title="#{bundle.CreateHistoricoStockTitle_quantidade}" required="true" requiredMessage="#{bundle.CreateHistoricoStockRequiredMessage_quantidade}"/>
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_dataOperacao}" for="dataOperacao" />
                    <h:inputText id="dataOperacao" value="#{historicoStockController.selected.dataOperacao}" title="#{bundle.CreateHistoricoStockTitle_dataOperacao}" required="true" requiredMessage="#{bundle.CreateHistoricoStockRequiredMessage_dataOperacao}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_dataSistema}" for="dataSistema" />
                    <h:inputText id="dataSistema" value="#{historicoStockController.selected.dataSistema}" title="#{bundle.CreateHistoricoStockTitle_dataSistema}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_operacao}" for="operacao" />
                    <h:inputText id="operacao" value="#{historicoStockController.selected.operacao}" title="#{bundle.CreateHistoricoStockTitle_operacao}" required="true" requiredMessage="#{bundle.CreateHistoricoStockRequiredMessage_operacao}"/>
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_detalhes}" for="detalhes" />
                    <h:inputText id="detalhes" value="#{historicoStockController.selected.detalhes}" title="#{bundle.CreateHistoricoStockTitle_detalhes}" />
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_fkLogin}" for="fkLogin" />
                    <h:inputText id="fkLogin" value="#{historicoStockController.selected.fkLogin}" title="#{bundle.CreateHistoricoStockTitle_fkLogin}" />
                    <h:outputLabel value="#{bundle.CreateHistoricoStockLabel_fkStock}" for="fkStock" />
                    <h:selectOneMenu id="fkStock" value="#{historicoStockController.selected.fkStock}" title="#{bundle.CreateHistoricoStockTitle_fkStock}" required="true" requiredMessage="#{bundle.CreateHistoricoStockRequiredMessage_fkStock}">
                        <f:selectItems value="#{stockStockController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{historicoStockController.create}" value="#{bundle.CreateHistoricoStockSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{historicoStockController.prepareList}" value="#{bundle.CreateHistoricoStockShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateHistoricoStockIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
